/*
 * @Author: kang_mou carl0608@126.com
 * @Date: 2023-04-21 13:19:53
 * @LastEditors: kang_mou carl0608@126.com
 * @LastEditTime: 2023-04-21 13:20:03
 * @FilePath: \create-sim\build.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
 // 入口文件
 entries: ["src/index"],
 clean: true,
 // 生成ts声明文件
 declaration: false,
 // 警告是否会引发报错
 failOnWarn: false,
 // rollup配置
 rollup: {
  // 生成cjs
  emitCJS: true,
  inlineDependencies: true,
  esbuild: {
   // 压缩代码
   minify: true,
  },
  resolve: {
   exportConditions: ["node"],
  },
 },
});
